﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.EventManager.PLC
{
    public class PLCEvent
    {
        /// <summary>
        /// PLC版本通知
        /// </summary>
        public static event Action<string> PLCVersionEventReport;
        public static void OnPLCVersion(string version)
        {
            PLCVersionEventReport?.Invoke(version);
        }

        /// <summary>
        /// PLC入站光电通知
        /// </summary>
        public static event Action<int> PLCInputEventReport;
        public static void OnPLCInput(int val)
        {
            PLCInputEventReport?.Invoke(val);
        }
    }
}
